package model;

import persistence.PersistenceManagerImp;

/**
 * Email application model component
 */
public class EmailApplicationModel implements EmailApplicationModelImp
{

   private PersistenceManagerImp persistenceManager;
      
   /**
    *  Constructor
    */
   public EmailApplicationModel()
   {
 
   }
    
    /*
     * (non-Javadoc)
     * @see model.EmailApplicationModelImp#registerPersistenceManager(persistence.PersistenceManagerImp)
     */
    public void registerPersistenceManager(PersistenceManagerImp persistenceManager)
    {
        this.persistenceManager = persistenceManager;
    }
    
    /*
     * (non-Javadoc)
     * @see model.EmailApplicationModelImp#unRegisterPersistenceManager()
     */
    public void unRegisterPersistenceManager()
    {
        this.persistenceManager = null;
    }
    
    /*
     * (non-Javadoc)
     * @see model.EmailApplicationModelImp#getPersistenceManager()
     */
    public PersistenceManagerImp getPersistenceManager()
    {
        return this.persistenceManager;
    }
}
